<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/28
  Time: 16:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    pageContext:上下文对象（管理其他对象和管理其他容器）
    数据类型：PageContext
    <%
        //"1"代表page类型容器
        //page容器到其他界面内容清空
        pageContext.setAttribute("A","page",1);
        //“2”代表request类型容器
        pageContext.setAttribute("A","request",2);
        //“3”代表session类型容器
        pageContext.setAttribute("A","session",3);
        //“4”代表application类型容器
        pageContext.setAttribute("A","application",4);
        request.getRequestDispatcher("h2.jsp").forward(request,response);
    %>
</body>
</html>
